package com.fanhang.samples.spring.security.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/home")
public class HomeController {

	@RequestMapping(value = "/index", method = { RequestMethod.GET })
	public Map<String, String> index() {
		Map<String, String> result = new HashMap<String, String>();
		result.put("message", "hello，this is home/index!");
		// 默认页面 home/index
		return result;
	}

	@RequestMapping(value = "/abc", method = { RequestMethod.GET })
	public Map<String, String> abc() {
		Map<String, String> result = new HashMap<String, String>();
		result.put("message", "home/abc");
		return result;
	}
}